package com.sigerap.cuenta.action;

import java.util.List;

import com.sigerap.comanda.model.Comanda;
import com.sigerap.comanda.service.RegistroService;
import com.sigerap.mesa.model.Mesa;
import com.sigerap.mesa.service.MesaService;
/**
 * 
 * @author Spirit-20121
 *
 */
public class GenerarCuentaAction {
	
	private RegistroService service;
	private List<Comanda> comandas;
	
	
	public GenerarCuentaAction(){
		service=new RegistroService();
	}
	
	public String execute()throws Exception{
		String retorno="exito";
		comandas=service.listarComandas();
		
		return retorno;
	}

	public List<Comanda> getcomandas() {
		return comandas;
	}

	public void setMesas(List<Comanda> comandas) {
		this.comandas = comandas;
	}

}
